package com.zhengsr.festec;

import android.app.Application;

import com.joanzapata.iconify.fonts.FontAwesomeModule;
import com.zhengsr.latte.app.Latte;
import com.zhengsr.latte.ec.ec.FontEcModule;
import com.zhengsr.latte.net.interceptors.DebugInterceptor;

import org.litepal.LitePal;

/**
 * Created by zhengshaorui on 2018/3/6.
 */

public class LatteApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        Latte.init(this)
                .withApiHost("http://192.168.1.102:8080/MyFestEC/")
                .withIcon(new FontAwesomeModule())
                .withIcon(new FontEcModule())
                .withInterceptor(new DebugInterceptor("sdfsd",R.raw.test))
                .configure();

        LitePal.initialize(Latte.getApplication());
    }
}
